#include <iostream>
#include "rational.h"

int main ()
{
    rational a(1,2);
    a.print();
    a += rational(1,1);

    a.print();
    a-=1;

    rational b(3,5);
    a.print();
    a /= b;
    a.print();

    a *= 6;
    a.print();

    rational c(37,13);
    c.print ();

    std::cout <<  c << "\n";
    c++;
    c.print();
    c--;
    c.print();

    std::cout << (rational(1,2) < rational(0,2)) << "\n";
    std::cout << (rational(1,2) > rational(0,2)) << "\n";
    std::cout << (rational(1,2) > rational(1,2)) << "\n";
    std::cout << (rational(1,2) != rational(1,2)) << "\n";
    std::cout << (rational(1,2) >= rational(1,2)) << "\n";

    a = rational(1,2);
    b = rational(3,2);
    c = a + b;
    c.print();
    rational d(0);
    d = b - a;
    d.print();
    d = b/a;
    d.print();
    d = 5;
    d.print();

    return 0;
}
